package com.hb.game.pk.utils.file;

import com.hb.game.pk.APP;
import com.hb.game.pk.utils.DeviceUtils;

/**
 * 软件所需要的文件目录管理类
 */
public class FilePathManager {

    private final static String softMainPath = "/com.hb.game.pk/";
    public final static String downloadPath = "/com.hb.game.pk/.download/";
    public final static String updatePath = "/com.hb.game.pk/update/";
    public final static String imageLoaderPath = "/com.hb.game.pk/image/cache/";

    /**
     * 获取软件主目录
     */
    public static String getSoftMainPath() {
        return DeviceUtils.getRootFilePath(APP.getContext()) + softMainPath;
    }

    /**
     * 获取默认下载目录
     */
    public static String getDownloadPath() {
        return DeviceUtils.getRootFilePath(APP.getContext()) + downloadPath;
    }

    /**
     * 获取默认软件更新存放目录
     */
    public static String getUpdatePath() {
        return DeviceUtils.getRootFilePath(APP.getContext()) + updatePath;
    }

    /**
     * 获取压缩后图片缓存的位置
     */
    public static String getImageLoaderPath() {
        return DeviceUtils.getRootFilePath(APP.getContext()) + imageLoaderPath;
    }

}
